{% extends "base.html" %}
{% load i18n %}
{% block title %}{{ title }}{% endblock %}

{% block content %}
<h2>{% trans "Appointments made by" %} {{ employee.get_full_name }}</h2>
<hr/>

<div class="container">
	<table class="table">
		<tr>
			<th>{% trans "Auto" %}</th>
			<th>{% trans "Timeslot" %}</th>
			<th>{% trans "Date" %}</th>
			<th>{% trans "Name" %}</th>
			<th>{% trans "Address" %}</th>
			<th>{% trans "Postal code" %}</th>
			<th>{% trans "City" %}</th>
			<th>{% trans "Phone" %}</th>
			<th>{% trans "Stuff" %}</th>
			<th>{% trans "Weight" %}</th>
			<th>{% trans "Kind" %}</th>
			<th>{% trans "View" %}</th>
		</tr>
		{% for object in appointment_list %}
		<tr>
			<td>{{ object.calendar.car }}</td>
			<td>{{ object.calendar.timeslot }}</td>
			<td>{{ object.calendar.date }}</td>
			<td>{{ object.customer.name }}</td>
			<td>{{ object.customer.get_address_display }}</td>
			<td>{{ object.customer.postcode }}</td>
			<td>{{ object.customer.town }}</td>
			<td>{{ object.customer.phone }}</td>
			<td>{{ object.stuff }}</td>
			<td>{{ object.get_weight_display }}</td>
			<td>{{ object.get_kind_display }}</td>
			<td><a href="{% url "AppointmentView" object.pk  %}"><i class="icon-eye-open"></i></a></td>
		</tr>
		{% endfor %}
	</table>
</div>

{% endblock %}